<?php
/**
 * Spectus Object Relation Mapper
 *
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 *
 * @category	Spectus
 * @package		Spectus
 * @copyright	Copyright (c) 2008-2009
 * @author		Mient-jan Stelling
 * @license		MIT License  http://en.wikipedia.org/wiki/MIT_License 
 */

/**
 * Spectus_Default_Table_Row_Abstract
 *
 * @author Mient-jan Stelling
 **/
class Spectus_Default_Table_Row_Exception extends Spectus_Exception
{
	const E_ROW_NOT_A_TABLERECORD = 100; // Table is not a table record. method save needs to be called first;
	
	private $arrDefaultMessage = array(
		100 => 'Table is not a table record. method save needs to be called first'
	);
	
	public function __construct( $argMixMessage, $argIntCode = 0, Exception $argObjPrevous = null )
	{
		if( is_int($argMixMessage) && isset( $this->arrDefaultMessage[ $argMixMessage ] ) )
		{
			parent::__construct( $this->arrDefaultMessage[ $argMixMessage ], $argMixMessage );
		}
		
		parent::__construct( '', 100 );
	}
}